package com.ss.android.update;

import android.content.Context;
import com.ss.android.common.dialog.AlertDialog.Builder;

public final class SSUpdateUtils implements IUpdateUtils {
    public IUpdateUtils mUpdateUtilsImpl;
    private static SSUpdateUtils sInstance;

    static {
        SSUpdateUtils.sInstance = new SSUpdateUtils();
    }

    public SSUpdateUtils() {

    }

    public static SSUpdateUtils getInstance() {
        return SSUpdateUtils.sInstance;
    }

    public final Builder createDialogBuilder(Context context) {
        Builder builder = this.mUpdateUtilsImpl != null ? this.mUpdateUtilsImpl.createDialogBuilder(context) : null;
        return builder;
    }

    public final int getErrorCode(Context context, Throwable throwable) {
        int errorCode = this.mUpdateUtilsImpl != null ? this.mUpdateUtilsImpl.getErrorCode(context, throwable) : 0;
        return errorCode;
    }
}

